from rest_framework.pagination import PageNumberPagination


class MyPageNumberPagination(PageNumberPagination):
    page_size = 10  # default page size
    page_size_query_param = 'pageSize'  # ?page=xx&size=??
    max_page_size = 50  # max page size